home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / LK_V1.06.LHA / LK V1.06 / HELP / arc.hlp < prev    next >
Encoding:
INI File  |  1994-11-01  |  2.9 KB  |  94 lines

  1. [LANGUAGE english; PARENT index; PAGE 3]
  2. [C;6;B]        Archived Libraries
  3. [J;1;N]
  4.   Note: before to read this, you have to know that you \
  5. will need the tool "LhA" to be able to use the archive \
  6. supports.
  7.  
  8.   Because librairies are very big files, it takes a \
  9. lot of rooms on your hard drive. If you want to save \
  10. some space, you may archive all libraries. lk supports \
  11. two different archive modes, and a mix of both:
  12. [INDENT 5]
  13.   1. one library by file, the name of the archive is \
  14. the name of the library with the '.lib' changed into \
  15. '.a'.
  16.  
  17.   2. all librairies in one single file, the name of the \
  18. archive must be 'libraries.a'.
  19.  
  20.   3. a mix of both, single and multiple libraries; lk \
  21. searchs for a single library archive at first, if it does \
  22. not exist, the multiple libraries archive is scanned.
  23. [INDENT]
  24.   In any case, an archive file name can have one of the \
  25. following extensions:
  26.  
  27.   1. ".a"            searched first
  28.   2. ".lha"
  29.   3. ".lzh"          searched last
  30.  
  31.   Because 'LhA' tool scan LHAOPTS, you can use that \
  32. environment variable to add some flags.
  33.  
  34.   There is nearly no change to do to use archived libraries:
  35. [INDENT 5]
  36.   1. archive your libraries; this is done by the use of "LhA" \
  37. tool in a CLI; the archives will be put in one of the directories \
  38. defined in the library paths;
  39. [2]
  40.        lha a <filename>.a <filename>.lib
  41. [1]       (single library)
  42.  
  43.      or
  44. [2]
  45.        lha a libraries.a <lib1>.lib <lib2>.lib ...
  46. [1]       (multiple libraries)
  47.  
  48.      the starting small letter 'a' means add to the archive, \
  49. you will refer to the archiver documentation for more \
  50. information.
  51. [INDENT 11]
  52.      note: no path can appear inside the archive, otherwise \
  53. the resulting files will not be found.
  54. [INDENT 5]
  55.   2. ensure that the device "T:" exists; this is usually an assign \
  56. on "RAM:T" (T being a directory); it is better to have "T:" in a \
  57. ram disk, while it would take a lot more time to uncompact a file \
  58. and you would use hard disk space;
  59.  
  60.        assign T: RAM:T
  61.  
  62.   3. change the extension of the libraries on your command lines or \
  63. into your WITH files; also the '.lib' will become '.a'; libraries \
  64. present in the commun file named 'libraries.a' will keep their \
  65. original names (only the extension is changed) on command lines and \
  66. WITH files, lk automatically makes the necessary transformations.
  67.  
  68.      note: your object libraries MUST have had the extension '.lib' \
  69. because lk assumes it so. Of course you might just renamed them \
  70. before to archive them.
  71.  
  72.   Example:
  73. [INDENT 4]
  74.     If you use lk with Amiga functions, you probably use the \
  75. 'amiga.lib' library. There are the steps to follow into your CLI to \
  76. transform that library into an archived library:
  77.  
  78.     [[assign T: RAM:T]      ;if it does not exists
  79.  
  80.     lha a lib:amiga.a [[<path>]amiga.lib
  81.  
  82.   or
  83.  
  84.     lha a lib:libraries.a [[<path>]amiga.lib
  85.  
  86.   command line changed:
  87.  
  88.     lk ... lib ... amiga.a ...
  89. [INDENT]
  90.   See also:
  91. [L;3][LINK keeparc]            KEEPARC
  92. [LINK paths]                LIBPATH
  93. [LINK library]                LIBRARY
  94.